<?php
/**
 * @user: tom
 * @date: 2021/5/17
 * @createTime: 14:37
 * @company: 迈酷网络科技 http://www.maicooit.com
 */
namespace app\admin\logic\user;

use app\BaseController;
use app\admin\model\UserData as UserDataModel;

class UserData extends  BaseController {
    //根据用户id查询
    public static function UserDataFindByIdLogic($id){
        $dao = new UserDataModel();
        $info = $dao->UserDataFindByIdModel($id);
        return $info;
    }
    //用户列表
    public static function UserDataListLogic($key,$domain,$page,$pagesize){
        $dao = new UserDataModel();
        $list = $dao->UserDataListModel($key,$domain,$page,$pagesize);
        return $list;
    }
    //用户新增
    public static function UserDataAddLogic($info){
        $dao = new UserDataModel();
        $res = $dao->UserDataInsertModel($info);
        return $res;
    }
    //用户编辑
    public static function UserSaveLogic($info){
        $dao = new UserDataModel();
        $res = $dao->UserDataSaveModel($info['user_id'],$info);
        return $res;
    }
    //用户禁用
    public static function UserDisableEableLogic(){
    }
    //用户删除
    public static function UserDelLogic(){
    }
}
?>